﻿using SocialShare.BusinessEntities;
using System.Linq;

namespace SocialShare.BusinessLogicLayer
{
    internal partial class SocialShare_Admin_UsersBLL
    {
        internal SocialShare_Admin_Users ValidateAdmin(string userName, string password)
        {
            return (_socialShareDatabaseContext.SocialShare_Admin_Users.FirstOrDefault(memObject => memObject.User_Name == userName && memObject.Password == password));
        }
    }
}
